<?php

class PersonaDeporte extends ActiveRecord {

    public function getDeporte($id) {
        $sql = "SELECT * FROM
                eventos.deportes ed,
                eventos.persona_deporte pd
                WHERE
                pd.deporte_id = ed.id
                AND
                pd.persona_id = $id;";
        return $resultado = $this->find_all_by_sql($sql);
    }

}